import { request } from './request.js'

export default {
  // 用户提货
  putDelivery: function (params) {
    return request('delivery/v1/put', params)
  },
  // 提货记录
  recordDelivery: function (params) {
    return request('delivery/v1/record', params)
  },
  // 提货物流信息
  expressDelivery: function (params) {
    return request('delivery/v1/express', params)
  },
  // 提货状态
  statusDelivery: function (params) {
    return request('delivery/v1/status', params)
  },
  // 收货地址列表
  getAddressList: function (params) {
    return request('delivery/v1/address/list', params)
  },
  // 添加收货地址
  addAddress: function (params) {
    return request('delivery/v1/address/add', params)
  },
  // 修改收货地址
  updateAddress: function (params) {
    return request('delivery/v1/address/update', params)
  },
  // 删除收货地址
  delAddress: function (params) {
    return request('delivery/v1/address/del', params)
  },
  // 省市区数据
  areaInfo: function (params) {
    return request('delivery/area/info', params)
  },
}